/**
 * @author : 乔磊磊
 * @ide    : WebStorm
 * @date   : 2025/2/18 星期二 21:24
 * @desc   : 事件管理器
 */
import {EventTarget} from 'cc';

class EventMgr extends EventTarget {
    private static instance: EventMgr;

    private constructor() {
        super()
    }

    public static get Instance(): EventMgr {
        if (this.instance == null) {
            this.instance = new EventMgr();
        }
        return this.instance;
    }

}

export const eventMgr = EventMgr.Instance